#include <iostream>
#include <stdio.h>

using namespace std;

int main(){
	char a[10000],b[10000];
	cin >> a;
	cin >> b;
	cout << a << endl;
	cout << b;
}
